package com.rd.student.dashuju.wangbo.exercise02;

import java.util.ArrayList;

public class QqTest {
    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList();
        String[] strs = {"12345","67891","123478099","9876543","67891","12347809933","12809933","12347809933111","9876543","12809933"};

        for (int i = 0;i< strs.length;i++){
            if (strs[i].length()>=6 && strs[i].length()<=9){
                arrayList.add(strs[i]);
            }
        }
        for (int i = 0; i < arrayList.size() ; i++) {
            for (int j = arrayList.size()-1; j > i ; j--) {
                if (arrayList.get(i) == arrayList.get(j)){
                    arrayList.remove(j);
                }
            }
        }
        System.out.println(arrayList);
    }
}
